package com.ctshk.rpc.ship.entity.es;

import com.ctshk.common.constant.ElasticSearchConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.List;

/**
 * @Description
 * @Author wansi <gaylen15527491065@yeah.net>
 * @Date 2021/6/4
 */
@Data
@ApiModel("PC-APP首页码头主数据")
@Document(indexName = ElasticSearchConstant.SHIP_INDEX)
public class ShipWharf implements Serializable {

    @ApiModelProperty("ID标志，前端忽略")
    @Field(type = FieldType.Keyword)
    private Long id;

    @ApiModelProperty("城市ID")
    @Field(type = FieldType.Keyword)
    private Long dCityId;

    @ApiModelProperty("城市名称")
    @Field(type = FieldType.Keyword)
    private String cityName;

    @ApiModelProperty("出发城市码头 1，到达城市码头2")
    @Field(type = FieldType.Integer)
    private Integer type;

    @ApiModelProperty("城市对应码头主数据")
    @Field(type = FieldType.Nested, index = false)
    private List<ShipRouteData> depShipRouteDataDTO;

    @ApiModelProperty("城市对应码头主数据")
    @Field(type = FieldType.Nested, index = false)
    private List<ShipRouteData> arrShipRouteDataDTO;
}
